﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="CreateAcc.aspx.cs" Inherits="SwenAssigment.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
    .auto-style3 {
        width: 121px;
    }
    .auto-style4 {
        width: 95px;
        height: 20px;
    }
    .auto-style5 {
        height: 20px;
    }
    .auto-style6 {
        width: 96px;
        height: 20px;
    }
    .auto-style7 {
        width: 97px;
        height: 20px;
    }
    .auto-style8 {
        width: 100px;
        height: 20px;
    }
    .auto-style9 {
        width: 121px;
        height: 20px;
    }
    .auto-style10 {
        width: 121px;
        height: 19px;
    }
    .auto-style11 {
        height: 19px;
    }
        .auto-style12 {
            width: 121px;
            height: 23px;
        }
        .auto-style13 {
            height: 23px;
        }
        .auto-style14 {
            width: 121px;
            height: 22px;
        }
        .auto-style15 {
            height: 22px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table style="width:100%;">
    <tr>
        <td class="auto-style10">Create Account</td>
        <td class="auto-style11"></td>
        <td class="auto-style11"></td>
    </tr>
    <tr>
        <td class="auto-style10">&nbsp;</td>
        <td class="auto-style11">
            &nbsp;</td>
        <td class="auto-style11">&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style10">Staff Informations</td>
        <td class="auto-style11">&nbsp;</td>
        <td class="auto-style11">&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style10">Staff Id:</td>
        <td class="auto-style11">
            <asp:TextBox ID="TextBox1" runat="server" ValidationGroup="a"></asp:TextBox>
            &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBox1" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="*Only allow Number" ForeColor="Red" ValidationExpression="[0-9]{1,}$" ValidationGroup="a"></asp:RegularExpressionValidator>
        </td>
        <td class="auto-style11"></td>
    </tr>
    <tr>
        <td class="auto-style3">Staff Name:</td>
        <td>
            <asp:TextBox ID="TextBox2" runat="server" ValidationGroup="a"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBox2" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="TextBox2" ErrorMessage="*Allow only letter" ForeColor="Red" ValidationExpression="[a-zA-Z]{1,}$" ValidationGroup="a"></asp:RegularExpressionValidator>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style12">Bank Acc:</td>
        <td class="auto-style13">
            <asp:TextBox ID="TextBox3" runat="server" ValidationGroup="a"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox3" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="TextBox3" ErrorMessage="*Invaild format" ForeColor="Red" ValidationExpression="[0-9\-]{1,}$" ValidationGroup="a"></asp:RegularExpressionValidator>
        </td>
        <td class="auto-style13"></td>
    </tr>
    <tr>
        <td class="auto-style12">NIRC:</td>
        <td class="auto-style13">
            <asp:TextBox ID="TextBox7" runat="server" ValidationGroup="a"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ControlToValidate="TextBox7" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="TextBox7" ErrorMessage="*Invaild format" ForeColor="Red" ValidationExpression="(^[a-zA-Z])+([0-9]{7})+([a-zA-Z]$)" ValidationGroup="a"></asp:RegularExpressionValidator>
        </td>
        <td class="auto-style13"></td>
    </tr>
    <tr>
        <td class="auto-style9"></td>
        <td class="auto-style5"></td>
        <td class="auto-style5"></td>
    </tr>
    <tr>
        <td class="auto-style3">Account Informations</td>
        <td>&nbsp;</td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style14">User Name:</td>
        <td class="auto-style15">
            <asp:TextBox ID="TextBox4" runat="server" ValidationGroup="a"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox4" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator4" runat="server" ControlToValidate="TextBox4" ErrorMessage="*Allow only letter and number(Range 4 to 20)" ForeColor="Red" ValidationExpression="[0-9a-zA-Z]{4,20}$" ValidationGroup="a"></asp:RegularExpressionValidator>
        </td>
        <td class="auto-style15"></td>
    </tr>
    <tr>
        <td class="auto-style3">Password:</td>
        <td>
            <asp:TextBox ID="TextBox5" runat="server" ValidationGroup="a" TextMode="Password"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox5" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator5" runat="server" ControlToValidate="TextBox5" ErrorMessage="*Allow only letter and number (Range 4 to 20)" ForeColor="Red" ValidationExpression="[0-9a-zA-Z]{4,20}$" ValidationGroup="a"></asp:RegularExpressionValidator>
        </td>
        <td>&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style9">Confirm Password:</td>
        <td class="auto-style5">
            <asp:TextBox ID="TextBox6" runat="server" ValidationGroup="a" TextMode="Password"></asp:TextBox>
        &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox6" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
&nbsp;<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="TextBox5" ControlToValidate="TextBox6" ErrorMessage="*Not same" ForeColor="Red" ValidationGroup="a"></asp:CompareValidator>
        </td>
        <td class="auto-style5"></td>
    </tr>
    <tr>
        <td class="auto-style9">Role:</td>
        <td class="auto-style5">
            <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True">
                <asp:ListItem>Normal</asp:ListItem>
                <asp:ListItem>Management</asp:ListItem>
                <asp:ListItem>Admin</asp:ListItem>
            </asp:DropDownList>
&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="DropDownList1" ErrorMessage="*Require" ForeColor="Red" ValidationGroup="a"></asp:RequiredFieldValidator>
        </td>
        <td class="auto-style5">&nbsp;</td>
    </tr>
    <tr>
        <td class="auto-style3">&nbsp;</td>
        <td>
            <asp:Button ID="Button3" runat="server" Text="Submit" OnClick="Button3_Click" ValidationGroup="a" style="height: 26px" />
        </td>
        <td>&nbsp;</td>
    </tr>
</table>
</asp:Content>
